<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学员跟踪</title>
    <%@ include file="/WEB-INF/views/common/common.jsp" %>
    <script type="text/javascript" src="/static/js/system/tracking.js"></script>
</head>
<body>
<%--列表--%>
<table id="tracking_datagrid"></table>
<%--列表顶部工具栏--%>
<div id="tracking_toolbar">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="add()">添加</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="edit()">编辑</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="reload()">刷新</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-lock',plain:true" onclick="changeState()">审核</a>
    <!--高级查询部分 -->

    <input class="easyui-textbox" name="keyword" type="text" id="keyword" prompt="输入/姓名/qq/录入人">

     <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="query()">查询</a>
</div>
<%--保存/编辑 对话框--%>
<div id="tracking_dialog">
    <form method="post" id="tracking_form">
    <input type="hidden" name="id"  id="cusId">
    <table align="center" style="margin-top:15px" cellpadding="5" >
        <tr>
            <td>客户名称</td>
            <td><input class="easyui-combobox" name="customer.id" data-options="
                                              url:'/customer/selectBycus',
                                              valueField: 'id',
                                              textField: 'name',
                                              panelHeight: 'auto'"
            ></td>
            <td>QQ</td>
            <td><input class="easyui-textbox" name="qq"></td>
        </tr>
        <tr>
            <td>电话</td>
            <td><input class="easyui-textbox" name="tel"></td>
            <td>跟踪人</td>
            <td><input class="easyui-combobox" name="tracking.id" data-options="
                                              url:'/employee/allselect',
                                              valueField: 'id',
                                              textField: 'realName',
                                              panelHeight: 'auto'"
            ></td>
        </tr>

        <tr>
              <td>交流方式</td>
              <td><input  class="easyui-combobox" name="content.id" data-options="
                                              url:'/dataDict/selsectForSchool?parentId=124',
                                              valueField: 'id',
                                              textField: 'name',
                                              panelHeight: 'auto'"
              ></td>
              <td>交流目的</td>
              <td><input class="easyui-combobox" name="purpose.id" data-options="
                                              url:'/dataDict/selsectForSchool?parentId=129',
                                              valueField: 'id',
                                              textField: 'name',
                                              panelHeight: 'auto'"
              ></td>
          </tr>

          <tr>
              <td>意向程度</td>
              <td><input class="easyui-combobox" name="degree.id" data-options="
                                              url:'/dataDict/selsectForSchool?parentId=9',
                                              valueField: 'id',
                                              textField: 'name',
                                              panelHeight: 'auto'"
              ></td>
          </tr>
        <td>审核状态:</td>
        <td><input  class="easyui-combobox" name="state" type="text"
                    data-options="data:[{'label': '已审核','value':'1'},{'label': '未审核','value': '0'}],valueField:'value', textField:'label',
                              panelHeight:'auto' ,limitToList:true,groupPosition :'sticky'"/>
        </td>
        <tr>
            <td>内容</td>
                 <td colspan="10">
                <input class="easyui-textbox" name="manner"  style="width:400px;height: 80px">
            </td>
        </tr>
    </table>
    </form>
</div>

<%--保存/编辑 对话框 底部工具栏 --%>
<div id="dialog_buttons">
    <a href="#"  id="save_linkbutton" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="save()">保存</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" onclick="cancel()">关闭</a>
</div>
</body>
</html>